package day3;

import day2.pet.Dog;

import java.util.HashMap;
import java.util.Map;

/**
 * @author oldliu
 * @since 1.0
 */
public class MapTest2 {
    public static void main(String[] args) {
        //
        Map map = new HashMap();

//        map.put("狗", "dog");
//        map.put("小狗", "dog");
        map.put(new Dog("大黄","公",76,88),"老高");
        map.put(new Dog("贾斯汀","公",76,88),"小李");
        map.put(new Dog("大黄","母",99,99),"小张");
        System.out.println(map.size());
        System.out.println(map);
    }
}
